package com.song;


import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan(basePackages = {"com.song.dao"})

public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }
    @Bean
    public Snowflake getSnowflake(){
        return  IdUtil.createSnowflake(1, 1);

    }
}
